package com.example.swimmingpool.entity.course;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.swimmingpool.entity.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("course")
public class Course extends BaseModel {
    /**
     * 课程名字
     */
    private String name;
    /**
     * 课程类别
     */
    private String type;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 描述
     */
    private String description;
    /**
     * 库存
     */
    private Integer account;
    /**
     * 课时
     */
    private Integer classTime;

    /**
     * 图片url
     */
    private String picture;

    /**
     * 开课时间
     */
    private LocalDate startTime;
}
